package com.data.data_base.service;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.data.data_base.domain.Student;

/**
 * @Classname: StudentService
 * @Description: service接口
 * @Date: 2021/5/31
 * @Author: huwei
 */
public interface StudentService extends IService<Student> {

    /**
     * 添加到master数据库中
     * @param student
     * @return
     */
    Integer saveMasterStudent(Student student);

    /**
     * 添加到salve数据库中
     */
    Integer saveSalveStudent(Student student);

    /**
     * 分页查询
     */
    IPage<Student> selectList(Integer pageNum,Integer pageCount);

}
